#define THIS_FILE "kamikaze.sqf"
#include <base\tmf_constants.h>
#include <base\tmf_macros.h>
WAITINIT(kamikaze);

if (!X_Server) exitWith {};
private ["_kamikaze","_explosive","_distance","_reliability"];
_kamikaze = _this;
_explosive = "R_OG9_HE";
_distance = 80;
_reliability = 0.9;
_side = d_side_own;
if (typename _this == typename []) then {
	if (count _this > 0) then { _kamikaze = _this select 0 };
	if (count _this > 1) then { _explosive = _this select 1 };
	if (count _this > 2) then { _distance = _this select 2 };
	if (count _this > 3) then { _reliability = _this select 3 };
	if (count _this > 4) then { _side = _this select 4 };
};
if (typename _kamikaze == typename objNull) then {
	[_side,_kamikaze,_distance,_explosive,_reliability] spawn XfMissionKamikaze;
};